package com.hdax.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.hdax.common.utils.PageUtils;
import com.hdax.gulimall.product.entity.PmsCategoryEntity;
import com.hdax.gulimall.product.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xiaohou
 * @email s2687781461@qq.com
 * @date 2023-04-07 17:41:13
 */
public interface PmsCategoryService extends IService<PmsCategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);


    /**
     * 查询商品以树形结构组装
     * @return
     */
    List<PmsCategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    Long[] findCatelogPath(Long attrGroupId1);

    void updateByCascade(PmsCategoryEntity pmsCategory);

    List<PmsCategoryEntity> getLevel1Category();

    Map<String, List<Catalog2Vo>> getCatalogJson() throws JsonProcessingException;
}

